// 封装评价记录相关接口
import request from '@/utils/request'

// 获取评价记录
export const getEvaluateService = ({ pageSize, page }) => {
  return request({
    url: '/api/evaluate',
    method: 'GET',
    params: {
      pageSize,
      page
    }
  })
}

// 删除评论记录
export const deleteEvaluateService = (id) => {
  return request({
    url: `/api/evaluate/del/${id}`,
    method: 'DELETE'
  })
}

// 搜索评论记录
export const searchEvaluateService = (data) => {
  return request({
    url: '/api/evaluate/search',
    method: 'GET',
    params: {
      data
    }
  })
}
